package com.djakapm.helper;

import java.util.Comparator;

@SuppressWarnings("unchecked")
public class StringComparator implements Comparator {

	public int compare(Object o1, Object o2) {
		String s1 = null;
		String s2 = null;
		if(!(o1 instanceof String) || !(o2 instanceof String)) {
			return 0;
		}
		s1 = o1.toString();
		s2 = o2.toString();
		return s1.compareTo(s2);
	}

}
